home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 August (Alt) / CHIP 2005-08.1.iso / program / guvenlik / syslinux-3.07.exe / com32 / lib / creat.c < prev    next >
Encoding:
C/C++ Source or Header  |  2004-11-10  |  190 b   |  13 lines

  1. /*
  2.  * creat.c
  3.  */
  4.  
  5. #include <sys/types.h>
  6. #include <sys/stat.h>
  7. #include <fcntl.h>
  8.  
  9. int creat(const char *pathname, mode_t mode)
  10. {
  11.   return open(pathname, O_CREAT|O_WRONLY|O_TRUNC, mode);
  12. }
  13.